﻿/*工具自动生成代码请勿修改
 创建时间2020:01:10:11:39:18*/
using System;
using System.Collections.Generic;
namespace GameCFG
{
	public class DataMgr_Item:ICfg
	{
		public Dictionary<Int16,Data_Item> Data {get{return m_data;}}
		public void DeSerialize(ByteBuffer buff)
		{
			Int16 count = buff.ReadInt16();
			for(int i = 0; i < count; i++)
			{
				Data_Item data = new Data_Item();
				data.DeSerialize(buff);
				m_data.Add(data.index,data);
			}
		}

		public static DataMgr_Item Singleton
		{
			get{
				if(m_singleton == null){
					 m_singleton = new DataMgr_Item();
					 DataLoader.Load(m_singleton,"Item");
				}
				 return m_singleton;
			}
		}
		private bool m_initState = false;
		private Dictionary<Int16,Data_Item> m_data = new Dictionary<Int16,Data_Item>();
		private static DataMgr_Item m_singleton;
	}
}
